Computer simulation of the field emission from multilayer cathodes