Resistivity and magnetism of AMn2P2 (A=Sr, Ba): the effect of structure type on physical properties