Determination of the meniscus shape of a negative ion beam from an experimentally obtained beam profile