PiFlow: Principle-aware Scientific Discovery with Multi-Agent Collaboration