Lattice dynamical calculations of infinite layer iron oxides SrFeO2 and CaFeO2