Electrochemical growth of three-dimensionally ordered macroporous metals as photonic crystals