A cross-layer approach for partition detection at overlay layer for structured P2P in MANETs