Jahn-Teller distortion and magnetic structures in LaMnO{sub 3}