Sumitra Mahajan elected Lok Sabha speaker