Use ofL2-integrable wave functions in molecular photoionization: Application to a simple model