Elastic scattering of 31 MeV protons from H2, He3, N14 and O16