Local Image Patterns for Counterfeit Coin Detection and Automatic Coin Grading