Raja Pervaiz Ashraf elected as NA speaker