Overcoming the barrier of conventional electrochemical deposition of inorganic composites