A method for the final yield prediction and for the automatic control of solid-phase peptide synthesis