convenience function for computing HI masses