Thailand dissolves parliament for snap elections