On the generation of ab initio potential energy surfaces using machine learning techniques