fix energy spectrum computation for nontrivial box size

1 job for bugfix/symmetrize in 4 minutes and 34 seconds (queued for 2 seconds)