In-situ micro-mechanical testing and characterization of materials