Charmonium and charmoniumlike states at the BESIII experiment