A theoretical study of laser desorption of molecules induced by an ultrashort pulse