Size-dependent static and dynamic responses of embedded double-layered graphene sheets under longitudinal magnetic field with arbitrary boundary conditions