Investigation of the Passerini and Ugi reactions in β-lactam aldehydes. Synthetic applications.