Direct radiative proton capture reactions in cerium and bismuth