The effect of larval density on an inversion polymorphism in the seaweed fly Coelopa frigida