Electroweak phase transition in the Z3-invariant NMSSM: Implications of LHC and Dark matter searches and prospects of detecting the gravitational waves