Punjab Assembly elects Pervaiz Elahi as speaker