NLS ground states on metric graphs with localized nonlinearities