Spectral conditions for edge connectivity and spanning tree packing number in (multi-)graphs