Depletion of background galaxies owing to the cluster lens CL0024+1654: U- and R-band observations