Optical and near-infrared IFU spectroscopy of the nuclear region of the AGN-starburst galaxy NGC 7582