Photoresponsive layered double hydroxides with controlable magnetic response