Queen Elizabeth has overtaken King Bhumibol Adulyadej of Thailand to become the world's second-longest reigning modern monarch.