Transition from Optical Bound States in the Continuum to Leaky Resonances: Role of Substrate and Roughness | Synapse