Crystal structure, magnetism and photophysics of the lanthanide maleates RE(C4O4H3)3·8H2O (RE=Nd, Sm)