Residual stress, intermolecular force, and frictional properties distribution maps of diamond films for micro- and nano-electromechanical (M/NEMS) applications