Quantum capacity and codes for the bosonic loss-dephasing channel