Artificial sources of light at night time may harm amphibian populations, a study has found.