Shifted Poisson structures and moduli spaces of complexes