Electronic and superconducting properties of the binary carbide La2C3