How to model a black-box optical system using Zernike coefficients