Tracing the envelopes around embedded low-mass young stellar objects with HCO+ and millimeter continuum observations