Restoration of degraded underwater images with attenuation coefficients as a clue