A general method to give internal characterizations of completely regular and tychonoff spaces