ENH: Array.get_axis_num method

This provides a standard way to get axis numbers for an xray array, i.e.,
`axis = array.get_axis_num(dim)` instead of
`axis = array.dimensions.index(dim)`.

The main advantage is that it gives a sensible error message, instead of the mystifying "ValueError: tuple.index(x): x not in tuple".