Spatial and spatio-temporal scan statistics of the regression coefficients