Separation Theorem Based on the Quasirelative Interior and Application to Duality Theory