On parameter identification for distributed systems using Galerkin's criterion