Data-Driven Score-Based Models for Generating Stable Structures with Adaptive Crystal Cells