Valence band photoemission study of the TiMoN system