Static and dynamic response of sandwich beams with lattice and pantographic cores