Theoretical study of the effect of Casimir force, elastic boundary conditions and size dependency on the pull-in instability of beam-type NEMS