Sequential ray tracing for lenses, mirrors and prisms — spot diagrams, aberrations, MTF and glass selection