Projected hartree-fock calculation for light nuclei (I). Energies and wave functions