A comparative study of crack detection in nanobeams using molecular dynamics, analytical and finite element methods