Evaluation of in situ mechanical properties of composites by using nanoindentation techniques