Multistability in microbeams: Numerical simulations and experiments in capacitive switches and resonant atomic force microscopy systems