Magnetic phase transition and clustered state in Ca-doped lanthanum cobaltite and manganite with insulator ground states.