Outflows, envelopes, and disks as evolutionary indicators in Lupus young stellar objects