Peer group effects and educational production functions