Wildcard Dustin Brown seized his chance to see off Croatia's Ivo Karlovic and move into the second round of the BMW Open in Munich.