CCD standards for U and I in the open cluster NGC 7790