Energy-level statistics of interacting trapped bosons