Phase transitions in manganites with substitution of divalent ions for manganese