Operators of observables for a neutral particle with anomalous magnetic moment in an electromagnetic field