Population of rotational states by proton induced reactions