How ‘Dune’ became a beacon for the fledgling environmental movement − and a rallying cry for the new science of ecology