The science behind how and why fireflies light up