Molecular tectonics: geometry and energy based analysis of coordination networks