Probing excitonic states in suspended two-dimensional semiconductors by photocurrent spectroscopy