An adaptive kernel estimator for the intensity function of spatio-temporal point processes