Dielectric functions of La-based cuprate superconductors for visible and near-infrared wavelengths