Invariants, nilpotent orbits, and prehomogeneous vector spaces