Zero-field splitting of Mn2+ ions in tetragonal and rhombic symmetry. The effect of excited state contributions