Coastal groundwater and its environmental, ecological and engineering implications