Jamie Smith scored 166 and Ollie Pope added a century as Surrey dominated the first day of their County Championship match against Leicestershire, accumulating 412-6.