Evaluation of Mechanical Strength of Miniaturized Functional Substrates and Components in Different Environments