Resonant tunneling through a two-level dot and double quantum dots