Linear relations between theta series