Structural and magnetic properties of Er(Co,Mn)O3 perovskite