Ex-situ synthesis followed by deposition on the substrate