Apex court orders demolition of mosque, cemetery built on illegal land