Controllable magnetic properties of layered copper hydroxides, Cu2(OH)3X (X=carboxylates)