X-band RF photoinjector design for the CompactLight project