School climate and teacher commitment