Experimental setup for dynamic analysis of microand nano-mechanical systems in vacuum, gas, and liquid