Rundāle palace, Latvia, 18th century