Bound states of the NLS equation on metric graphs with localized nonlinearities