Different effects of a laser prepulse on the proton generation between plastic and metal targets irradiated by an ultraintense laser pulse