Shape resonances in the interband pairing in nanoscale modulated materials