Analytical proof of the isospectrality of quasinormal modes for Schwarzschild-de Sitter and Schwarzschild-Anti de Sitter spacetimes