A versatile and “green” electrochemical method for synthesis of copper and other transition metal oxide and hydroxide nanostructures