Spin dynamics in antiferromagnetic oxypnictides and fluoropnictides: LaMnAsO, LaMnSbO, and BaMnAsF