Shape optimization using the cut finite element method