Determination of QW Ser and QZ Lib parameters from optical spectra