A Spanish scientist believes he has finally solved a longstanding mystery about ice that causes the different shapes ice crystals form.