Why molecules look the way they do in STM: A systematic functional group approach.