Owen Thomas, Royal Anglesey Royal Engineers