Conditional preparation of non-Gaussian quantum optical states by mesoscopic measurement