In-beam spectroscopy of heavy elements