Statistics for Locally adaptive change-point detection (LACPD) with applications to environmental changes