Gravitational waves from very massive stars collapsing to a black hole