mdsim.box.reader: use new attribute "dimension"

The attribute has been added recently to H5MD saving us from
investigating the number of box edges.

This change amends commit:e5e335f.