Embedding sensors using selective laser melting for self-cognitive metal parts