Precise calculation for energy levels of a helium atom in P states