which type of compound results from the combination of metal and non-metal elements?