Electrodynamics as a problem of eigenvalues. I. Maxwell operator and its properties. Momentum‐energy tensor