Mechanistic study on a novel pseudo-five-component synthesis of 4H-thiopyrans