Pretreatment of inorganic membrane material prior to membrane formation